# 右对齐三角形
b=5
for i in range(0,5):
    print("" * (b-i)+ "*"* i ,end='\n' )

# 正三角形



for i in range(6):
    for j in range(6):
        print("*",end='')
    print()



# 上下颠倒正三角形

for i in range(10):
    for a in range(0,i):
        print(end=" ")
    for b in  range(i ,10-i):
        print("*",end="")
    print()